package com.kksoft.readcm.b;

import com.kksoft.readcm.c.d;
import com.kksoft.readcm.objects.j;

import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import org.apache.http.HttpEntity;
import org.apache.http.impl.client.DefaultHttpClient;

public final class e extends m
{
  private final String a;
  private final int b;
  private final j c;
  private DefaultHttpClient d;
  private d e;
  private String f;
  private byte[] g;

  public e(d paramd, int paramInt, String paramString, DefaultHttpClient paramDefaultHttpClient)
  {
    super(2);
    this.e = paramd;
    this.c = null;
    this.b = paramInt;
    this.a = paramString;
    this.d = paramDefaultHttpClient;
    this.f = "text/html";
  }

  public e(d paramd, j paramj, DefaultHttpClient paramDefaultHttpClient)
  {
    super(2);
    this.e = paramd;
    this.c = paramj;
    int i = paramj.f();
    this.b = i;
    String str = paramj.d();
    this.a = str;
    this.d = paramDefaultHttpClient;
    this.f = "text/html";
  }

  private int a(HttpEntity paramHttpEntity) throws IllegalStateException, IOException
  {
    InputStream localInputStream = paramHttpEntity.getContent();
    while (true)
    {
      try
      {
        ByteArrayOutputStream localByteArrayOutputStream = new ByteArrayOutputStream();
        byte[] arrayOfByte1 = new byte[16384];
        int k = arrayOfByte1.length;
        int m = localInputStream.read(arrayOfByte1, 0, k);
        if (m != -1)
          continue;
        if (localByteArrayOutputStream.size() <= 1048576)
        {
          localByteArrayOutputStream.flush();
          localByteArrayOutputStream.close();
          byte[] arrayOfByte2 = localByteArrayOutputStream.toByteArray();
          this.g = arrayOfByte2;
          int i = 0;
          return i;
//          if (i.size() > 1048576)
//            continue;
//          i.write(arrayOfByte1, 0, m);
//          continue;
        }
      }
      catch (IOException localIOException)
      {
//        throw localIOException;
      }
      finally
      {
//        localInputStream.close();
      }
//      localIOException.close();
      int j = 3;
    }
  }

  // ERROR //
  public final void a()
  {
    // Byte code:
    //   0: ldc 94
    //   2: istore_1
    //   3: aload_0
    //   4: getfield 31	com/ideashower/readitlater/b/e:a	Ljava/lang/String;
    //   7: ifnull +15 -> 22
    //   10: aload_0
    //   11: getfield 25	com/ideashower/readitlater/b/e:e	Lcom/ideashower/readitlater/c/d;
    //   14: invokeinterface 100 1 0
    //   19: ifeq +110 -> 129
    //   22: ldc 101
    //   24: istore_2
    //   25: iload_2
    //   26: ifne +595 -> 621
    //   29: ldc 102
    //   31: istore_3
    //   32: iload_3
    //   33: ifeq +791 -> 824
    //   36: aload_0
    //   37: getfield 82	com/ideashower/readitlater/b/e:g	[B
    //   40: ifnull +13 -> 53
    //   43: aload_0
    //   44: getfield 82	com/ideashower/readitlater/b/e:g	[B
    //   47: arraylength
    //   48: ldc 70
    //   50: if_icmple +774 -> 824
    //   53: ldc 94
    //   55: istore_1
    //   56: iload_1
    //   57: ifne +37 -> 94
    //   60: aload_0
    //   61: getfield 27	com/ideashower/readitlater/b/e:c	Lcom/ideashower/readitlater/objects/j;
    //   64: ifnull +30 -> 94
    //   67: aload_0
    //   68: getfield 25	com/ideashower/readitlater/b/e:e	Lcom/ideashower/readitlater/c/d;
    //   71: invokeinterface 106 1 0
    //   76: invokevirtual 111	com/ideashower/readitlater/a/Appconfig:g	()Lcom/ideashower/readitlater/a/k;
    //   79: astore 4
    //   81: aload_0
    //   82: getfield 27	com/ideashower/readitlater/b/e:c	Lcom/ideashower/readitlater/objects/j;
    //   85: astore 5
    //   87: aload 4
    //   89: aload 5
    //   91: invokevirtual 116	com/ideashower/readitlater/a/k:b	(Lcom/ideashower/readitlater/objects/j;)V
    //   94: aload_0
    //   95: getfield 29	com/ideashower/readitlater/b/e:b	I
    //   98: tableswitch	default:+30 -> 128, 0:+529->627, 1:+612->710, 2:+645->743, 3:+686->784
    //   129: aload_0
    //   130: getfield 31	com/ideashower/readitlater/b/e:a	Ljava/lang/String;
    //   133: astore 6
    //   135: new 118	java/net/URI
    //   138: dup
    //   139: aload 6
    //   141: invokespecial 121	java/net/URI:<init>	(Ljava/lang/String;)V
    //   144: astore 7
    //   146: aload 7
    //   148: invokevirtual 124	java/net/URI:getScheme	()Ljava/lang/String;
    //   151: astore 8
    //   153: aload 7
    //   155: invokevirtual 127	java/net/URI:getUserInfo	()Ljava/lang/String;
    //   158: astore 9
    //   160: aload 7
    //   162: invokevirtual 130	java/net/URI:getHost	()Ljava/lang/String;
    //   165: astore 10
    //   167: aload 7
    //   169: invokevirtual 133	java/net/URI:getPort	()I
    //   172: istore 11
    //   174: aload 7
    //   176: invokevirtual 136	java/net/URI:getPath	()Ljava/lang/String;
    //   179: astore 12
    //   181: aload 7
    //   183: invokevirtual 139	java/net/URI:getQuery	()Ljava/lang/String;
    //   186: astore 13
    //   188: new 118	java/net/URI
    //   191: dup
    //   192: aload 8
    //   194: aload 9
    //   196: aload 10
    //   198: iload 11
    //   200: aload 12
    //   202: aload 13
    //   204: aconst_null
    //   205: invokespecial 142	java/net/URI:<init>	(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
    //   208: astore_3
    //   209: ldc 94
    //   211: istore_1
    //   212: aload_3
    //   213: ifnull +626 -> 839
    //   216: iload_1
    //   217: ifne +622 -> 839
    //   220: new 144	org/apache/http/client/methods/HttpGet
    //   223: dup
    //   224: aload_3
    //   225: invokespecial 147	org/apache/http/client/methods/HttpGet:<init>	(Ljava/net/URI;)V
    //   228: astore 14
    //   230: invokestatic 152	com/ideashower/readitlater/activity/App:i	()Ljava/lang/String;
    //   233: astore 15
    //   235: aload 14
    //   237: ldc 154
    //   239: aload 15
    //   241: invokevirtual 158	org/apache/http/client/methods/HttpGet:setHeader	(Ljava/lang/String;Ljava/lang/String;)V
    //   244: aload_0
    //   245: getfield 33	com/ideashower/readitlater/b/e:d	Lorg/apache/http/impl/client/DefaultHttpClient;
    //   248: aload 14
    //   250: invokevirtual 164	org/apache/http/impl/client/DefaultHttpClient:execute	(Lorg/apache/http/client/methods/HttpUriRequest;)Lorg/apache/http/HttpResponse;
    //   253: astore_3
    //   254: aload_3
    //   255: invokeinterface 170 1 0
    //   260: astore 16
    //   262: aload 16
    //   264: ifnull +570 -> 834
    //   267: aload_3
    //   268: invokeinterface 174 1 0
    //   273: invokeinterface 179 1 0
    //   278: sipush 200
    //   281: if_icmpne +548 -> 829
    //   284: aload_3
    //   285: ldc 181
    //   287: invokeinterface 185 2 0
    //   292: astore_1
    //   293: aload_3
    //   294: ldc 187
    //   296: invokeinterface 185 2 0
    //   301: astore_3
    //   302: aload_1
    //   303: ifnull +17 -> 320
    //   306: aload_1
    //   307: invokeinterface 192 1 0
    //   312: invokestatic 198	java/lang/Integer:parseInt	(Ljava/lang/String;)I
    //   315: ldc 70
    //   317: if_icmpgt +31 -> 348
    //   320: aload_3
    //   321: ifnull +172 -> 493
    //   324: aload_3
    //   325: invokevirtual 203	java/lang/Object:toString	()Ljava/lang/String;
    //   328: ldc 205
    //   330: invokevirtual 210	java/lang/String:indexOf	(Ljava/lang/String;)I
    //   333: ifge +15 -> 348
    //   336: aload_3
    //   337: invokevirtual 203	java/lang/Object:toString	()Ljava/lang/String;
    //   340: ldc 212
    //   342: invokevirtual 210	java/lang/String:indexOf	(Ljava/lang/String;)I
    //   345: iflt +148 -> 493
    //   348: aconst_null
    //   349: astore_3
    //   350: aload_3
    //   351: ifnonnull +10 -> 361
    //   354: aload_0
    //   355: aload 16
    //   357: invokespecial 214	com/ideashower/readitlater/b/e:a	(Lorg/apache/http/HttpEntity;)I
    //   360: istore_3
    //   361: aload 16
    //   363: invokeinterface 217 1 0
    //   368: aload_0
    //   369: getfield 33	com/ideashower/readitlater/b/e:d	Lorg/apache/http/impl/client/DefaultHttpClient;
    //   372: invokevirtual 221	org/apache/http/impl/client/DefaultHttpClient:getConnectionManager	()Lorg/apache/http/conn/ClientConnectionManager;
    //   375: astore 17
    //   377: getstatic 227	java/util/concurrent/TimeUnit:SECONDS	Ljava/util/concurrent/TimeUnit;
    //   380: astore 18
    //   382: aload 17
    //   384: ldc2_w 228
    //   387: aload 18
    //   389: invokeinterface 235 4 0
    //   394: iload_3
    //   395: istore_2
    //   396: goto -371 -> 25
    //   399: astore 19
    //   401: aconst_null
    //   402: astore_2
    //   403: aload_0
    //   404: getfield 31	com/ideashower/readitlater/b/e:a	Ljava/lang/String;
    //   407: astore 20
    //   409: new 237	java/net/URL
    //   412: dup
    //   413: aload 20
    //   415: invokespecial 238	java/net/URL:<init>	(Ljava/lang/String;)V
    //   418: astore 21
    //   420: aload 21
    //   422: invokevirtual 241	java/net/URL:getProtocol	()Ljava/lang/String;
    //   425: astore 22
    //   427: aload 21
    //   429: invokevirtual 244	java/net/URL:getAuthority	()Ljava/lang/String;
    //   432: astore 23
    //   434: aload 21
    //   436: invokevirtual 245	java/net/URL:getPath	()Ljava/lang/String;
    //   439: astore 24
    //   441: aload 21
    //   443: invokevirtual 246	java/net/URL:getQuery	()Ljava/lang/String;
    //   446: astore 25
    //   448: new 118	java/net/URI
    //   451: dup
    //   452: aload 22
    //   454: aload 23
    //   456: aload 24
    //   458: aload 25
    //   460: aconst_null
    //   461: invokespecial 249	java/net/URI:<init>	(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
    //   464: astore_3
    //   465: ldc 94
    //   467: istore_1
    //   468: goto -256 -> 212
    //   471: invokestatic 252	com/ideashower/readitlater/activity/App:b	(Ljava/lang/Throwable;)V
    //   474: aload_2
    //   475: astore_3
    //   476: ldc 253
    //   478: istore_1
    //   479: goto -267 -> 212
    //   482: invokestatic 252	com/ideashower/readitlater/activity/App:b	(Ljava/lang/Throwable;)V
    //   485: aload_2
    //   486: astore_3
    //   487: ldc 253
    //   489: istore_1
    //   490: goto -278 -> 212
    //   493: aload_3
    //   494: ifnull +45 -> 539
    //   497: ldc 255
    //   499: iconst_2
    //   500: invokestatic 261	java/util/regex/Pattern:compile	(Ljava/lang/String;I)Ljava/util/regex/Pattern;
    //   503: astore 26
    //   505: aload_3
    //   506: invokevirtual 203	java/lang/Object:toString	()Ljava/lang/String;
    //   509: astore 27
    //   511: aload 26
    //   513: aload 27
    //   515: invokevirtual 265	java/util/regex/Pattern:matcher	(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
    //   518: astore_3
    //   519: aload_3
    //   520: invokevirtual 270	java/util/regex/Matcher:find	()Z
    //   523: ifeq +16 -> 539
    //   526: aload_3
    //   527: iconst_1
    //   528: invokevirtual 274	java/util/regex/Matcher:group	(I)Ljava/lang/String;
    //   531: astore 28
    //   533: aload_0
    //   534: aload 28
    //   536: putfield 37	com/ideashower/readitlater/b/e:f	Ljava/lang/String;
    //   539: aconst_null
    //   540: astore_3
    //   541: goto -191 -> 350
    //   544: astore_3
    //   545: aload 14
    //   547: invokevirtual 277	org/apache/http/client/methods/HttpGet:abort	()V
    //   550: aload_0
    //   551: getfield 29	com/ideashower/readitlater/b/e:b	I
    //   554: ifne +7 -> 561
    //   557: aload_3
    //   558: invokestatic 252	com/ideashower/readitlater/activity/App:b	(Ljava/lang/Throwable;)V
    //   561: aload_0
    //   562: getfield 33	com/ideashower/readitlater/b/e:d	Lorg/apache/http/impl/client/DefaultHttpClient;
    //   565: invokevirtual 221	org/apache/http/impl/client/DefaultHttpClient:getConnectionManager	()Lorg/apache/http/conn/ClientConnectionManager;
    //   568: astore 29
    //   570: getstatic 227	java/util/concurrent/TimeUnit:SECONDS	Ljava/util/concurrent/TimeUnit;
    //   573: astore 30
    //   575: aload 29
    //   577: ldc2_w 228
    //   580: aload 30
    //   582: invokeinterface 235 4 0
    //   587: goto -459 -> 128
    //   590: astore 31
    //   592: aload_0
    //   593: getfield 33	com/ideashower/readitlater/b/e:d	Lorg/apache/http/impl/client/DefaultHttpClient;
    //   596: invokevirtual 221	org/apache/http/impl/client/DefaultHttpClient:getConnectionManager	()Lorg/apache/http/conn/ClientConnectionManager;
    //   599: astore 32
    //   601: getstatic 227	java/util/concurrent/TimeUnit:SECONDS	Ljava/util/concurrent/TimeUnit;
    //   604: astore 33
    //   606: aload 32
    //   608: ldc2_w 228
    //   611: aload 33
    //   613: invokeinterface 235 4 0
    //   618: aload 31
    //   620: athrow
    //   621: ldc 94
    //   623: istore_3
    //   624: goto -592 -> 32
    //   627: aload_0
    //   628: getfield 25	com/ideashower/readitlater/b/e:e	Lcom/ideashower/readitlater/c/d;
    //   631: astore_3
    //   632: aload_0
    //   633: getfield 37	com/ideashower/readitlater/b/e:f	Ljava/lang/String;
    //   636: astore 14
    //   638: aload_0
    //   639: getfield 82	com/ideashower/readitlater/b/e:g	[B
    //   642: astore 16
    //   644: aload_0
    //   645: getfield 37	com/ideashower/readitlater/b/e:f	Ljava/lang/String;
    //   648: invokevirtual 280	java/lang/String:toLowerCase	()Ljava/lang/String;
    //   651: ldc_w 282
    //   654: invokevirtual 286	java/lang/String:contains	(Ljava/lang/CharSequence;)Z
    //   657: ifeq +40 -> 697
    //   660: ldc 94
    //   662: istore 34
    //   664: aload_0
    //   665: getfield 31	com/ideashower/readitlater/b/e:a	Ljava/lang/String;
    //   668: astore 35
    //   670: iload_2
    //   671: iconst_3
    //   672: if_icmpne +32 -> 704
    //   675: ldc 102
    //   677: istore_2
    //   678: aload_3
    //   679: iload_1
    //   680: aload 14
    //   682: aload 16
    //   684: iload 34
    //   686: aload 35
    //   688: iload_2
    //   689: invokeinterface 289 7 0
    //   694: goto -566 -> 128
    //   697: ldc 102
    //   699: istore 34
    //   701: goto -37 -> 664
    //   704: ldc 94
    //   706: istore_2
    //   707: goto -29 -> 678
    //   710: aload_0
    //   711: getfield 25	com/ideashower/readitlater/b/e:e	Lcom/ideashower/readitlater/c/d;
    //   714: astore 36
    //   716: aload_0
    //   717: getfield 82	com/ideashower/readitlater/b/e:g	[B
    //   720: astore 37
    //   722: aload_0
    //   723: getfield 27	com/ideashower/readitlater/b/e:c	Lcom/ideashower/readitlater/objects/j;
    //   726: astore 38
    //   728: aload 36
    //   730: iload_1
    //   731: aload 37
    //   733: aload 38
    //   735: invokeinterface 292 4 0
    //   740: goto -612 -> 128
    //   743: aload_0
    //   744: getfield 25	com/ideashower/readitlater/b/e:e	Lcom/ideashower/readitlater/c/d;
    //   747: astore 39
    //   749: aload_0
    //   750: getfield 82	com/ideashower/readitlater/b/e:g	[B
    //   753: astore 40
    //   755: aload_0
    //   756: getfield 31	com/ideashower/readitlater/b/e:a	Ljava/lang/String;
    //   759: astore 41
    //   761: aload_0
    //   762: getfield 27	com/ideashower/readitlater/b/e:c	Lcom/ideashower/readitlater/objects/j;
    //   765: astore 42
    //   767: aload 39
    //   769: iload_1
    //   770: aload 40
    //   772: aload 41
    //   774: aload 42
    //   776: invokeinterface 295 5 0
    //   781: goto -653 -> 128
    //   784: aload_0
    //   785: getfield 25	com/ideashower/readitlater/b/e:e	Lcom/ideashower/readitlater/c/d;
    //   788: astore 43
    //   790: aload_0
    //   791: getfield 82	com/ideashower/readitlater/b/e:g	[B
    //   794: astore 44
    //   796: aload_0
    //   797: getfield 37	com/ideashower/readitlater/b/e:f	Ljava/lang/String;
    //   800: astore 45
    //   802: aload 43
    //   804: aload 44
    //   806: aload 45
    //   808: invokeinterface 298 3 0
    //   813: goto -685 -> 128
    //   816: astore 46
    //   818: aload 7
    //   820: astore_2
    //   821: goto -418 -> 403
    //   824: iload_3
    //   825: istore_1
    //   826: goto -770 -> 56
    //   829: iload_1
    //   830: istore_3
    //   831: goto -470 -> 361
    //   834: iload_1
    //   835: istore_3
    //   836: goto -468 -> 368
    //   839: iload_1
    //   840: istore_2
    //   841: goto -816 -> 25
    //
    // Exception table:
    //   from	to	target	type
    //   129	146	399	java/net/URISyntaxException
    //   403	465	471	java/net/MalformedURLException
    //   403	465	482	java/net/URISyntaxException
    //   244	368	544	java/lang/Throwable
    //   497	539	544	java/lang/Throwable
    //   244	368	590	finally
    //   497	539	590	finally
    //   545	561	590	finally
    //   146	209	816	java/net/URISyntaxException
  }

  protected final void c()
  {
    this.e = null;
    this.f = null;
    this.d = null;
    this.g = null;
  }
}

/* Location:           E:\AndroidDecompiler\jd-gui-0.3.3.windows\newrclasses.dex.dex2jar.jar
 * Qualified Name:     com.kksoft.readcm.b.e
 * JD-Core Version:    0.6.0
 */